<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
		
		<style type="text/css">
			[v-cloak]{
				display: none;
			}
		</style>
	</head>
	<body>
		<h3>姓名（单值）、年龄（单值）、爱好（数组）、女朋友（对象）、豪车（对象数组）</h3>
		<div id="app" v-cloak>
			姓名：{{name}}、年龄：{{age}}<br>
			爱好：{{hobby}}、{{hobby[0]}}、{{hobby.length}}
			<hr >
			姓名：{{girlfriend.name}}、年龄：{{girlfriend.age}}<br>
			爱好：{{girlfriend.hobby}}
			<hr >
			车库：<br>
			{{cars[0].name}}、{{cars[0].color}}<br>
			{{cars[1].name}}、{{cars[1].color}}<br>
			{{cars}}
		</div>
	</body>
	<script>
		new Vue({
			el:"#app",
			data:{
				msg:"hello vue js",
				name:"于谦",
				age:30,
				hobby:["抽烟","喝酒","烫头"],
				girlfriend:{
					name:"白慧明",
					age:22,
					hobby:["点烟","倒酒","给于谦烫头"]
				},
				cars:[
					{name:"老子来此",color:"white"},
					{name:"表马",color:"red"}
				]
			}
		});
	</script>
	
</html>
